﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace VacationDaysCommons
{
    public enum VDRequestState
    {
        Pending = 0,
        Approved = 1,
        Rejected = 2,
        Archived = 3
    }
    
    [DataContract]
    public class VDVacationRequest
    {
        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public Guid UserID { get; set; }
        [DataMember]
        public string UserName { get; set; }
        [DataMember]
        public DateTime StartDate { get; set; }
        [DataMember]
        public Int32 Duration { get; set; }
        [DataMember]
        public VDRequestState RequestState { get; set; }
        /// <summary>
        /// Holds a descriptive text, ex. for PM to motivate rejection of a request
        /// </summary>
        [DataMember]
        public String Context { get; set; }
    }

    class VDVacationRequests
    {
    }
}
